$('#lxcbox').css({
    fontSize: '14px',
    position: 'fixed',
    top: '-10px',
    width: '100%',
    background: '#fff',
    zIndex: 3
});
// 给头部添加东西
$('#lxcheader').css({
    width: '100%',
    height: '36px',
    backgroundColor: '#eeeeee',

});
var lxcUlHeader = ($('<ul>').appendTo('#lxcheader')).attr('id', 'lxcul1').css({
    width:'2000px'
});


var liCity = $('<li>').appendTo(lxcUlHeader).html('所在城市：').css({
    marginLeft:'227px'
});
{
if(localStorage.usersheng){
    var olxc=localStorage.usersheng;
}else{
    olxc='请选择城市'
}
$('<span>').appendTo(liCity).attr('id','chengs').html(olxc).css({
    color:'red',

}).click(function(){
    $('#myModal').modal({
        remote:'/lxcsanjiliandong'
    })
});
}
var luphone = $('<li>').appendTo(lxcUlHeader).html('您好：').css({
    marginLeft: '426px'
});
{
    let ouser;
    if(localStorage.userID){
         ouser=localStorage.userID
    }else{
        ouser='游客138'
    }
$('<span>').appendTo(luphone).attr('id', 'phone').html(ouser).css({
    color:'red',
});
}
$('<span>').appendTo(luphone).attr('id', 'tuichu').html('退出&nbsp&nbsp&nbsp|').click(function(){
    localStorage.clear();
    window.location.href='/psdLogin'
});

$('<li>').appendTo(lxcUlHeader).html('&nbsp&nbsp&nbsp我的订单&nbsp&nbsp&nbsp|').css({

});
$('<li>').appendTo(lxcUlHeader).html('&nbsp&nbsp&nbsp我的消息&nbsp&nbsp&nbsp|').css({

});
$('<li>').appendTo(lxcUlHeader).html('&nbsp&nbsp&nbsp我是商家&nbsp&nbsp&nbsp|').css({

});
$('<li>').appendTo(lxcUlHeader).html('&nbsp&nbsp&nbsp电话').css({

});

$('#lxcul1 li').css({
    float: 'left',
    lineHeight: '36px',
    height: '14px',
    cursor: 'pointer'
});




//搜索div
$('#lxcsearch').css({
    width: '920px',
    height: '130px',
    position: 'relative',
    left:'16.666%',
    
});


//添加的第一个div
$('<div>').appendTo('#lxcsearch').css({
    width: '300px',
    height: '67px',

    background:"url('../images/lxc/logo.png') no-repeat",
    backgroundSize: "180px",
    position: 'absolute',
    top: '40px',
    left: ''
});

//添加的第二个div
var inpu = $('<div>').appendTo('#lxcsearch').css({
    position: 'absolute',
    top: '40px',
    left: '200px'
});
$('<input>').appendTo(inpu).css({
    width: '400px',
    height: '40px',
    border: '2px solid #4b943d',
    borderRight: 'none',
    fontSize: '24px',

});
$('<div>').appendTo(inpu).attr('id', "divinput").html("<i class='iconfont icon-biaoqing' style='color:#fff;font-size:25px'></i>").css({
    display:'inline-block',
    width:'30px',
    height:'40px',
    backgroundColor:'#4b943d',
    lineHeight:'44px',
    position: 'relative',
    top:'3px',

});
$('<button>').appendTo(inpu).attr('id', "but1").html("<i class='iconfont icon-user' style='font-size:25px'></i><span style='font-size:14px;position:relative;top:-2px'>个人中心</span>").css({
    width: '100px',
    height: "42px",
    border: '2px solid #f8f8f6',
    position: 'relative',
    left:'20px',
    top:'0px'
});
$('<button>').appendTo(inpu).attr('id', "but2").html("<i class='iconfont icon-gouwuche' style='font-size:25px'></i><span style='font-size:14px;position:relative;top:-2px'>购物车</span>").css({
    width: '100px',
    height: "42px",
    border: '2px solid #f8f8f6',
    position: 'relative',
    left:'20px',
    top:'0px'

}).click(function(){
    if(!localStorage.userID){
        window.location.href='/psdLogin'
    }else{
         window.location.href='/lxcgouwuche'
    }
   
});


var lxcul2 = $('<ul>').appendTo(inpu).attr('id', 'lxcul2');
$('<li>').appendTo(lxcul2).html('热门：').css({

});
$('<li>').appendTo(lxcul2).html('苹果').css({

});
$('<li>').appendTo(lxcul2).html('苹果').css({

});
$('<li>').appendTo(lxcul2).html('苹果').css({

});
$('#lxcul2 li').css({
    float: 'left',
    lineHeight: '36px',
    height: '14px',
    cursor: 'pointer'
});
//lxcselect
$('#lxcselect').css({
    marginTop:'165px',
    width:'100%',
    height:'50px',
    backgroundColor:'blue',
});
var lxc8=$('<ul>').appendTo('#lxcselect').attr('id','lxc8').css({

});
$('<li>').appendTo(lxc8).html('热门：').css({

});
$('<li>').appendTo(lxc8).html('苹果').css({

});
$('<li>').appendTo(lxc8).html('苹果').css({

});
$('<li>').appendTo(lxc8).html('苹果').css({

});
$('#lxc8 li').css({
    float: 'left',
    cursor: 'pointer'
});
//尾部
$("#lxcfooter1").css({
    width: '100 %',
    height: '80px',
    // backgroundColor: 'yellow',
    borderTop: '1px solid #eeeeee',
    borderbottom: '1px solid #eeeeee',
    paddingLeft:'16.666%'
});
$('<span>').appendTo('#lxcfooter1').html('&nbsp&nbsp&nbsp优先保障').css({
    background:"url('../images/lxc/yxbz.png') 5px 20px no-repeat",
});
$('<span>').appendTo('#lxcfooter1').html('&nbsp&nbsp&nbsp&nbsp全程监控').css({
    background:"url('../images/lxc/qcjk.png') 5px 20px no-repeat",
});
$('<span>').appendTo('#lxcfooter1').html('&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp礼拜五特惠').css({
    background:"url('../images/lxc/lbwth.png') 5px 20px no-repeat",
});
$('<span>').appendTo('#lxcfooter1').html('&nbsp&nbsp&nbsp&nbsp基地直供').css({
    background:"url('../images/lxc/jdzg.png') 5px 20px no-repeat",
});
$('<span>').appendTo('#lxcfooter1').html('&nbsp&nbsp&nbsp&nbsp&nbsp准时送达').css({
    background:"url('../images/lxc/zssd.png') 5px 20px no-repeat",
    borderRight:'1px solid #eeeeee'
});
$("#lxcfooter1 span").css({
    display: 'inline-block',
    width: '188px',
    height: '80px',
    cursor: 'pointer',
    fontSize:'20px',
    fontWeight:'100',
    textAlign: 'center',
    lineHeight:'80px',
    borderLeft: '1px solid #eeeeee',
});

$('#lxcfooter2').css({
    height: '200px'
});
var footer2ul = $('<ul>').appendTo('#lxcfooter2').attr('id', 'footer2ul');
$('<li>').appendTo(footer2ul).css({
    marginLeft:'16.666%',
    height:'130px',
    width:'200px',
    background:"url('../images/lxc/logo.png') no-repeat",
    backgroundSize: "200px",
    marginTop:'30px'
});
$('<li>').appendTo(footer2ul).html('&nbsp&nbsp&nbsp&nbsp|').css({
    marginTop:'12px',
    marginLeft:'10px',
    width:'130px',
    height:'130px',
    background:"url('../images/lxc/APP.png') no-repeat",
});
$('<li>').appendTo(footer2ul).html('&nbsp&nbsp&nbsp&nbsp&nbsp|').css({
    marginTop:'12px',
    marginLeft:'10px',
    width:'130px',
    height:'130px',
    background:"url('../images/lxc/APP.png') no-repeat",
});
var footerli1 = $('<li>').appendTo(footer2ul).html('关于礼拜五').css({
    marginLeft:'50px',
    fontSize:'12px'
});
$('<a>').appendTo(footerli1).html('新用户注册');
$('<a>').appendTo(footerli1).html('在线下单');
$('<a>').appendTo(footerli1).html('支付方式');
var footerli2 = $('<li>').appendTo(footer2ul).html('配送说明').css({
    marginLeft:'50px'
});
$('<a>').appendTo(footerli2).html('运费说明');
$('<a>').appendTo(footerli2).html('配送方式');
$('<a>').appendTo(footerli2).html('发票说明');
var footerli3 = $('<li>').appendTo(footer2ul).html('售后服务').css({
    marginLeft:'50px',

});
$('<a>').appendTo(footerli3).html('退换货说明');
$('<a>').appendTo(footerli3).html('服务保障承诺');
$('<a>').appendTo(footerli3).html('验货与签收 ');
var footerli4 = $('<li>').appendTo(footer2ul).html('加盟礼拜五').css({
    marginLeft:'50px'
});
$('<a>').appendTo(footerli4).html('加盟条款');
$('<a>').appendTo(footerli4).html('公司简介');
$('<a>').appendTo(footerli4).html('服务协议');

$('#footer2ul li').css({
    float: 'left',
    lineHeight: '36px',
    height: '130px',
    cursor: 'pointer',
    fontSize:'12px',
    
});
$('#footer2ul a').css({
    display: 'block'
});


//底部lxcbottom

$('#lxcbottom').css({
    textAlign:'center',
    borderTop:'1px solid #eeeeee'
});
$('<div>').appendTo("#lxcbottom").html('版权所有@礼拜五 保留所有权利|卢ICP备527734287').css({
    fontSize:'12px'
});
$('<div>').appendTo("#lxcbottom").html('礼拜五纵享品质').css({
    fontSize:'12px'
});
//隐藏弹窗清除内容
$("#myModal").on("hide.bs.modal", function () {
    $('#myModal .modal-content').empty();
    $(this).removeData("bs.modal");
});